#ifndef FILEDIALOGWIDGET_H
#define FILEDIALOGWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QGroupBox>
#include <QDragEnterEvent>
#include <QDropEvent>

class FileDialogWidget : public QWidget
{
    Q_OBJECT

public: FileDialogWidget(void);
    ~FileDialogWidget();
    void set(QWidget *parent, int x, int y, const char *str, const char *bot_name);
    bool is_path(void);
    QString get_path(void);

signals:
    // 声明一个信号，不需要实现
    void ctrl_Signal(void);
    void path_Signal(bool);

private slots:
    void openFileDialog();
    void but_ctr_sloot();
private:
    QGroupBox box;
    QLineEdit *lineEdit;
    QPushButton *but_open;
    QPushButton *but_ctr;
};
#endif // FILEDIALOGWIDGET_H
